fix kmeans filter