Change the detention location definition from location name to id.