Some actions release more enemies, which must be killed to go to the next level. If you save in the wrong place, the actions will be saved, but the killed enemies won't. This will prevent you from proceeding through the level. In these cases, use the "Kill 1 enemy to unlock door" code.