Fix packet type issue