fix a minor bug.
fix a phase command related bug.