fix clustering bug for forester