Fixed bug in the new switch-modified interactions in C kernels