File read fix