removed bugs when session doesnt exist