merged query fix for get child in terms
started fixing spacing