fixes to ajax search