Fix smarty use