fixed typeof() was uncorrectly used
Merge pull request #6 from chrmor/master

fixed typeof() was uncorrectly used