Fix variable typo in ResultException