remove code that generates duplicate field names

Fixes bug that seemed to have copy-pasted the list fields code twice!