fix revertProject and kernel switch