Post hoc ergo proper hack
This occurs when a filmmaker has an idea that must go in the film, and retcons the whole affair to make it fit. Yep, 'retcons'. It's like having a nonsensical prequel within the film itself.
I'm far too proud of coming up with the name of this rule.