Fixed fs.writeFileSync