madigan6: Fixed weixi's login error: app would crash after logout then login