fixed error display for flash[error]