Update kernel.cpp

error 10001 block fix