packet handlers priority sorting fix