Fixed off-by-one error in received packet.