repair a bug

bug about search