Fix possible usage of a record as a failure/success