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