fixed bug that made the dashboard crash before being redirected on session time out