fixing session linking