fix of assert in InstanceUtil
Merge pull request #68 from rostafiychuk/instanceutil

fix of assert in InstanceUtil