make sure ['group'] is actually an int group_id