Fix a issue in Update_Phi.m