Bug fix for the site metadata lookup method.