fixed error with the ids