update ti.smart module with .replace fix