Fixed grounding of recursive ground rules