Fix search through AJAX