map editor fixes