added white flash fix