Do not set flash if there are errors