fixing resize map