fix write 5