Fixed minor bugs in SCTX