#1 fix Uncaught ReferenceError