Fixed issue with session variable creation