smarty fix