Replace the fieldsInfo to setFieldInfo()
Update another place.