fix flickering on making the map small