fix: work with inherited objects
Merge pull request #1 from muhalet/master

fix: work with inherited objects