fixup! wip: fix group by plans