Going to Next Level

So, when I go into the door that is to change levels the screen does go to the next level that it is supposed to for like a second. Then it just switches back to the original level I was just on and completed. I don’t know if this is a bug or if I am doing something wrong.

Give me the link for the game