phi node fix in progress