fixed the issue of ID's having a length > 1