fix the clustering problem, graclus won't be called if only one thread is used