fixed sm install bug
Merge branch 'sm'