fix populateFields