fixed sending the correct peer_id