fixing session error