fixed a memory leaking bug in clustering