correcting ID mapping