session helper fix