Fix NPE getting config.