fixed double error flash