Bug fix for root id fetching