fix bug with packet