fix a bug when readRecord's result no not an array