Fix issue when getting children