modify Run_mode bug