Make sure group_id is set instead of group

Fixes #469.