Fixed issue with getting Object component

Issue #263