Fixed bug on the debug information printing index.