Fixed bug when switching from local track to online track