fixed a bug about extracting field order