Bug fix: session length