Smarty fix