correct field types, remove ref text