(map) fixed a resizing-related bug