How about not using a global themes variable?