Fix usage dialog being displayed at inappropriate time.