Bug fix

Bug fix in search