fixed error where multiple groups were created