File read bug fixed