Fix routing bidirection bug