fix resizing map