Fix missing error variable in check methods.