Fixing writefile issue