Fix "TypeError: group id must be integer" if groupid passed in for group
key