fix smarty plugins bug