fix Smarty 3.1.17 until next release