fixed bug in fastsearch