Avoid error when no session found