fix write response order