Fixed the bug of switch to the current mode