fix on mac add smarty