you rewrite the ID of fields which have already an ID which is useless, you should check if the ID is empty and if it is, put the name of the field.