fix bug in kendall