Fixed a bug in Group index controller