fix bug&speed up

wrong case: choose same items