Fixed map resize and map editing erros.