minor fixes in handle_error_workflow