A deportation-eligible immigrant who was returned to the United States in handcuffs by Canadian border patrol officers had his conviction for being in the United States without legal permission overturned on Tuesday.

The U.S. Court of Appeals for the Second Circuit held that Walter Vasquez Macias could not be convicted of being “found in” the United States illegally because he was forcibly returned by Canadian authorities after attempting to cross into Canada and start a new life.