fixing case where no errors are found