Fixed issue where childless terms weren't included