fixed mapeditor bug