A Filipino woman in the United Arab Emirates was given a chance to repay her debt after being granted a visa under the country’s amnesty program.

The Filipina had been staying illegally in the UAE for eight years since her visa expired. During that time, she became jobless and ran up a debt of 190,000 dirhams (US$51,736) after a check bounced and landed her in jail, Khaleej Times reported.

According to Fatma Abdulrahim Obaid, head of the Human Rights Section at the Abu Dhabi Judicial Department, the 43-year-old Filipina also had a travel ban imposed due to her conviction.

“She came to us crying. She had spent almost eight years stuck in the country and without a job. She couldn’t move out of the country because she had a travel ban and was unable to repay the debt from the bounced check,” Obaid said.

Obaid explained that the human rights department helped the Filipina get the warrant for her arrest temporarily suspended, which allowed her to apply for a jobseeker visa to search for work to help her pay off her debt.

“We have helped her get the six-month jobseekers temporary residence visa under the ongoing amnesty scheme and she is now living happily and freely in the country as she looks for a job,” she said.