fix allFields array issue