fixed bug in the new --newgroups function