Fix up the ReferenceError