fix multiple id's code