fix write size.