Fixing a bug, can't sure $groups