fixing flashing lines in map.