Fixing Problems with session