Fixed bug related to invalid data in cookie regarding key messanger.state