Should fix some Smarty errors