Fix bugs when a configuration does not exist