fixed bug with closing doors when exiting from level editor