Fixed logic that if the file has just been created and is not read