update next_hop if distance has changed, even if last_hop stays the same