fix kernelize