Fix metadata search.