fix some phis not getting spilled correctly