Fixed "use of undeclared identifier 'typeof'" bug