fix read file error