upgrade code with sm.html.
fix.