Fixed Bug In Search Function