fix BasicObject
Merge pull request #350 from rusikf/patch-4

fix BasicObject