Search not working fully