fix the can not logout bug