Fix smarty warnings for version 3