fix compile error
fix stoptrade issue.