Repair of FileWriter operation