Fixed bug with config loading