Bug Resolved for search Function