fix bug when logout without activate
Mirror fix