Major bug fixed in session variable handler