1.fix some bugs of using smop