A federal appeals court on Wednesday threw out the “shockingly low” four-year prison sentence of a Brooklyn woman who admitted to aiding ISIS, rejecting late U.S. District Judge Jack B. Weinstein’s reasoning that trauma and the need for deradicalization warranted leniency.

The ruling, from a three-judge panel of the U.S. Court of Appeals for the Second Circuit, found Weinstein’s 2019 decision in the case of Sinmyah Amera Ceasar to be “substantively unreasonable,” and ordered that she be resentenced by a Brooklyn federal judge.