fixed issue related to adding custom vars to the session