Fixed `removing kernel` problem