fixed bug about search