Fixed file system I/O bugs.