fixing a few bugs in preprocessing via CK
fixing a few bugs in preprocessing via CK

ctuning/ck-autotuning,ctuning/ck-autotuning,ctuning/ck-autotuning,ctuning/ck-autotuning,ctuning/ck-autotuning,ctuning/ck-autotuning