FIX Fix some bugs in kernel module discovered during writing unit test
FIX Fix some bugs in kernel module discovered during writing unit test
fabianp/scikit-learn,fabianp/scikit-learn,fabianp/scikit-learn,fabianp/scikit-learn