Removed inconsitency between standard search and AJAX search