fix bug for search issue