fix the length of send data