fix the gold search error!