#BUG: Fix the bug that no switching between the local and the online mode