Use the correct value for record.recgroupid.

This is needed after d38c80ecf911acd4a84fa44f40a7c7cabc983104.
Not the best fix, but perhaps the least effort given current plans.