Fix the error in constrainedClustering