bug-fix for Smarty update