fix case ctxs