Fixing the way an error is handled.