It is important that all of the flags you reference in your if statements exist somewhere in the story. If they do not, your story will break.
You can use the “Check Flags” tool on the story page to check what flags you have created and where. It will also show you when you reference those flags later. Most importantly, it will show you if you are referencing a flag that does not exist. You MUST fix this.