Fixed problems in MMKernel