Fix bug in gossiping protocol