fix packet type