Fix can not loggout.