peer_id comparison fix