Fix bug with config