fix user logout bug