Fixed a bug where two fields with the same name would get the same ID