solve bug in routing