[fix] 2 small bugs in smarty plugins