fixed entity search bug