fixed packet size bug crash