fixed map editor bug