handle case where index is all the same.

This is to address the issue of the div id's being identical.