fixed: windowing glitch when the map size is smaller.