Fixed issue with error in groups when quitting