fix the bug when logout, could reenter the main activity of loader