Modified all groups query in groups controller index action