Update routing table correctly when receiving a message