two fixes in config loading: