Fix error flash messages