Fixed writing to files