fix error when config[bundles] is not set