fix write 7