fixing flashes