fixed phi node linking