fix write 8