Fix useless check_error operation