Correction to packet_decode logic.