Fix typo that caused ReferenceError