fix work with config