Fixing code reference
Merge pull request #11 from christensenep/error-fix

Fixing ReferenceError in fixError function