fixed bugs in calling scs