map resize fix