Fix rendering glitches when far from the center of the map