Fixed bugs in cluster visualization routines