On door open - Logic problem

It was copied, I touched the keyboard by mistake.