fixed sm install bug