Fix bug with instanceof
Merge pull request #151 from komex/develop

Fix bug with instanceof