patched get_config for compatibility when config is empty
small bug