Fix set_error_handler call