fix new map layer editor problem