fixing display problem with IDs of different length