fix write error reporting