Consider the case when packet.id is 0

Related commit: 344323a314cee564992ec853a0dfc7a23d581ccc