Changed location.ID to location.Id