fixed findJunction