fix bug when logout without activate