map editing bug fixes