match smarty fix