Fixed checkConfig/checkCapability calls.