Fixed some bugs in the index numbers, some groups had the same index numbers!