fix fatal after add config file