fix for invalid theme in session