fix bug on finding exemplars in clusters