Fixed isssue with findAllGroups method