Preventing flashing