Fixed writing somehow...