Fixing session reference