fix NPE on setupConfig