Fixed MapEditor bugs