Fixed issue with getCapabilities().