fixed clearing of cookie, localStorage stores, close #349