Fixed bug with config