Fixed a critical issue which happened after the session expired