Fix writeLong()