fix runMode