small fix for flashError