Fixed fileWriter