Fixed binary writing.