Fix a fatal error in groups - thanks AaronB for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>