fixed bug in label_clusters whereby last cluster cut off