Repair of undefined value error when session variables are set (rare).