LODI (CBS13) — A judge has granted the release of Hamid Hayat, whose 2006 terror conviction was overturned last week.

The terms of his release include no travel outside of the Eastern District of California and a curfew while prosecutors decide whether to retry his case.

READ MORE: CAISO Cautiously Optimistic Lights Will Stay On, But Rolling Blackouts Still Possible This Summer

A federal judge filed court papers declaring Hayat’s prison sentence is now vacated over “deficient representation.”

The documents read: “…[Hayat’s attorney] Wazhma Mojaddidi failed to adequately investigate certain defenses on Hayat’s behalf and to effectively represent him on certain issues during trial.”

READ MORE: Stockton Police Chief Praises Hero Neighbor Who Saved Little Boy During Deadly Shooting

READ ALSO: Family Of Hamid Hayat Urges Quick Release After Judge Overturns 2006 Terror Conviction

Hayat’s attorney had never represented a client in a criminal case, and she did not seek alibi witnesses, who have since come forward with statements a judge has ruled as facts.

MORE NEWS: Sacramento County Man Suspected Of Selling Illegal Fireworks Arrested

Hayat was accused of attending a terrorist training camp in Pakistan and plotting to attack the U.S.