Small fix for getSubItems.