kernel slope calculation bug fixed