fixes for template dropdown.