fixed issue with config loading