Fix: Field is undefined

Attempt to access property `getCode` should probably be a method call to `getCode()`.