map editor works correctly now,