fix flashing