fixing session problem