fixed the bug that panics caused by unexported field.