Fixing resize map.