Fix bogus ungrounded-rule expansion