Solved some bug in routing protocol