fix wrong theme selection in condition