fixed the session helper