Substantial jury confusion in an entrapment case led a federal appeals court Monday to order a new trial for a man convicted of shipping child pornography.

A divided panel of the U.S. Court of Appeals for the Second Circuit said the trial of 20-year-old Scott Kopstein in Brooklyn federal court was marred by a poor jury instruction and made worse by supplemental instructions that “could be understood to say that the jury could convict even if the entrapment defense was successful.”