Fixed major bug in file system