fix: work with inherited objects