Fix for session variables

Fix for session variables