fix write 4