Attempt to fix file stream.