fixing session controller