Fixed CorrectPhase bug