fix bug read file