Fix error checks.