Fixed NPE of config being null