fixed mgcc indexing mistake