fix read file code in ufile.c