Fixed small mapeditor bug