fix scheduler run for only instandby, and fix cosmetic issue.