fix NPE when Config.isClientMode()