Fixed bug in node clustering.