Fix some bugs in SC.