modify RunMode bug