fixed a bug in fs.go