Fixes session issue