Fixed bugs in GerpPhase.