Fixed map redraw bug after resize