bug fix for transferring code back from multiple instance kernels