A Florida appeals court is ordering a new trial for a woman sentenced to 20 years to prison after she fired a warning shot in a wall during a dispute with her husband.

The 1st District Court of Appeal ruled that a judge did not properly instruct the jury handling the case of Marissa Alexander.

But the appeals court did also state that the judge was right to block Alexander from using the state's "Stand Your Ground" law as a way to defend her actions.

Alexander had never been arrested before she fired a bullet at a wall one day in 2010 to scare off her husband when she felt he was threatening her.

Her case in Jacksonville has drawn attention and criticism aimed at mandatory-minimum sentencing laws.