fix some buges in recordReader