fix dumb typos in CT algo