Bug fixes on the Capabilities Document (CanonicalHostname)