Fix config error. insert try/catch