fix a bug when compare cluster len