Fixing double session error