fix some parsing errors in the map editor