fixing bug in streaming kmeans