fixed typeof issue