Fixed bug when linking kernel to new code cells