fix bug that can not get back after login in web app mode.