bugfix passing theme variable to template