Ticket #181: Fix error message format issue when same index is used twice

Change-Id: Ia48b32b4974f19340379b611973cd6f1318c22a4