fix errors in SC demo