fixed problem with same name and new id