Fix session theme handling.