fix typos in weighted kmeans