fixing session.get() issue