fix bug from config