Fixed issue with getting Object component