Marissa Alexander, the African-American woman who was sentenced to 20 years for discharging a firearm in Florida despite pleading Stand Your Ground against her husband, will get a new trial. Alexander, 32, said she fired a bullet at the ceiling because she was afraid of her husband. No one was injured. It took 12 minutes for the jury to convict her.

“We reject her contention that the trial court erred in declining to grant her immunity from prosecution under Florida’s Stand Your Ground law,” wrote Judge James H. Daniel, “but we remand for a new trial because the jury instructions on self-defense were erroneous.”

Alexander, who had given birth the week before, testified that after an altercation regarding texts from her ex-husband, she locked herself in the bathroom. Her husband Rico Gray broke through the door, grabbed her by the neck, and shoved her into the door. She ran to the garage, found she couldn’t get the door open, and returned with a gun. When Gray saw the gun, he said, “Bitch, I’ll kill you.” Alexander testified that firing the gun into the air as a warning shot was “the lesser of two evils.”

The jury rejected her self-defense argument, and instead Alexander was sentenced under the “10-20-Life” law, which carries a series of mandatory minimum sentences related to gun crimes. The prosecutor in her case was Angela Corey, who also prosecuted George Zimmerman who was acquitted in the death of Trayvon Martin. After an outcry at the apparent racial double standard in the application of Stand Your Ground, Corey told the Washington Post, “I think social media is going to be the destruction of this country.”

The appeals court judge ruled that the lower court judge improperly put a burden on Alexander to prove that the firing was in self-defense. “The defendant’s burden is only to raise a reasonable doubt concerning self-defense,” Daniel wrote. “The defendant does not have the burden to prove the victim guilty of the aggression defended against beyond a reasonable doubt.” He ordered a retrial. A separate proceeding would determine whether Alexander could be released on bail pending that trial.