small fixes for map and mapeditor