fixed fatal search bug