Fixed a small bug when opening the level editor