Canada's immigration minister will allow a Moroccan family to stay in the country despite their visas being revoked a day before arriving in Montreal.

Rachida Iblihi, a mother of two, had been waiting since Nov. 17 to hear about her family's fate after she and her children moved from Morocco to Montreal.

Both Iblihi and her husband applied to immigrate under Canada's Federal Skilled Worker Program – a program the Conservative government amended in June.

Iblihi and her husband sold everything they owned and she quit her job as a chemical lab technician to move to Canada. Her husband was set to arrive in Montreal in three weeks, after he finished training a new employee taking over position as a logistics manager.

Iblihi was thrilled to hear the Immigration Minister Jason Kenney had granted her family permission to stay in Canada.

"[He] made my dream come true," she said. "Now, I can start my life the way I want to."

Kenney said about 50 people received visas that shouldn't have.

"[They] were issued erroneously, so I've looked into the matter and it appears … apparently there were about 50 of those applications that should have been returned but where visas were issued as a result of an information technology error," he said.

The error happened while his ministry was making changes to its technology system.

'I left everything behind'

"I left everything behind to find a good future for my children," said Iblihi, in an interview Wednesday morning before hearing about the minister's decision.

She and her two children, aged one and six, moved to Canada following a five year-long process.

Iblihi said she was told by an immigration officer at Montreal's Trudeau airport that her family's visas was given out by mistake and had been revoked by Immigration Canada.

"I started crying alone. I left everything, I can't go back," she said.

Not the 1st case

Nadia Barrou, the family's lawyer who oversaw the entire immigration process, said she received an email informing her of Immigration Canada's decision to revoke the visas on Nov. 16, the day before Iblihi and her two children were to leave for Montreal.

She said she was not aware of the message until Nov. 17, but by that time Iblihi was on a plane to Canada.

Barrou said the email indicated the visas were issued by mistake.

The so called "new rules" are part of a sweeping bill passed by Canada's Conservative government in June.

In an attempt to streamline its immigration laws, the government introduced new language and skills guidelines in omnibus Bill C-38, to help fill gaps in Canada's workforce.

Potential immigrants who applied under the Federal Skilled Worker Program before Feb. 27, 2008, and were not approved by the end of March 2012, had their files closed.

The bill, also known as the Jobs, Growth and Long-term Prosperity Act, eliminated a backlog of 280,000 applications for visas filed before 2008 that had not be processed.

"The important thing is to fix the mistake," said Barrou, who had threatened to file a lawsuit against the government to cover the Moroccan family's damages.

A group of lawyers in Toronto are planning to file class-action lawsuits against the government on behalf of people whose applications were rejected.

Related on HuffPost:

Loading Slideshow...
  • Chinese, n.o.s.

    <b>Language</b>: Chinese, n.o.s. <b>Originating country</b>: China <b>Decrease in Canada</b>: Approximately 8 per cent.

  • Italian

    <b>Language</b>: Italian <b>Originating country</b>: Italy <b>Decrease in Canada</b>: Approximately 5 per cent

  • Polish

    <b>Language</b>: Polish <b>Originating country</b>: Poland <b>Decrease in Canada</b>: Approximately 4 per cent

  • Greek

    <b>Language</b>: Greek <b>Originating country</b>: Greece <b>Decrease in Canada</b>: Approximately 1 per cent.

  • Vietnamese

    <b>Language</b>: Vietnamese <b>Originating country</b>: Vietnam <b>Increase in Canada</b>: Approximately 4 per cent.

  • Cantonese

    <b>Language</b>: Cantonese <b>Originating country</b>: China <b>Increase in Canada</b>: Approximately 4 per cent.

  • Portuguese

    <b>Language</b>: Portuguese <b>Originating countries</b>: Portugal, Brazil, as well as Mozambique and Angola, among others <b>Increase in Canada</b>: Approximately 8 per cent.

  • Serbian

    <b>Language</b>: Serbian <b>Originating country</b>: Serbia <b>Increase in Canada</b>: Approximately 10 per cent.

  • Ukrainian

    <b>Language</b>: Ukrainian <b>Originating country</b>: Ukraine <b>Increase in Canada</b>: Approximately 10 per cent.

  • Korean

    <b>Language</b>: Korean <b>Originating countries</b>: North and South Korea <b>Increase in Canada</b>: Approximately 13 per cent.

  • German

    <b>Language</b>: German <b>Originating countries</b>: Germany, as well as Austria and Switzerland, among others <b>Increase in Canada</b>: Approximately 15 per cent.

  • Romanian

    <b>Language</b>: Romanian <b>Originating countries</b>: Romania and Moldova <b>Increase in Canada</b>: Approximately 18 per cent.

  • Tamil

    <b>Language</b>: Tamil <b>Originating countries</b>: Sri Lanka, India, as well as Malaysia, Singapore, Mauritius and Réunion <b>Increase in Canada</b>: Approximately 24 per cent.

  • Punjabi

    <b>Language</b>: Punjabi <b>Originating countries</b>:India and Pakistan <b>Increase in Canada</b>: Approximately 26 per cent.

  • Gujarati

    <b>Language</b>: Gujarati <b>Originating country</b>: India <b>Increase in Canada</b>: Approximately 28 per cent

  • Russian

    <b>Language</b>: Russian <b>Originating countries</b>: Russia, as well as countries of the former Soviet Union <b>Increase in Canada</b>: Approximately 28 per cent.

  • Urdu

    <b>Language</b>: Urdu <b>Originating countries</b>: Pakistan and India <b>Increase in Canada</b>: Approximately 32 per cent.

  • Spanish

    <b>Language</b>: Spanish <b>Originating countries</b>: Spain, most of Latin America <b>Increase in Canada</b>: Approximately 34 per cent.

  • Farsi/Persian

    <b>Language</b>: Farsi/Persian <b>Originating countries</b>: Iran, Afghanistan, Tajikistan, Uzbekistan, Iraq, Pakistan, Bahrain and Azerbaijan, among others <b>Increase in Canada</b>: Approximately 34 per cent.

  • Bengali

    <b>Language</b>: Bengali <b>Originating countries</b>: Bangladesh and India, as well as communities in Pakistan, Saudi Arabia, Malaysia, Singapore and others <b>Increase in Canada</b>: Approximately 40 per cent

  • Creoles

    <b>Language</b>: Creoles <b>Originating country</b>: Haiti <b>Increase in Canada</b>: Approximately 42 per cent

  • Hindi

    <b>Language</b>: Hindi <b>Originating country</b>: India <b>Increase in Canada</b>: Approximately 48 per cent

  • Arabic

    <b>Language</b>: Arabic <b>Originating countries</b>: The League of Arab States, including Egypt, Iraq, Lebanon and Jordan, among others, as well as Turkey, Iran and Israel, among others <b>Increase in Canada</b>: Approximately 45 per cent

  • Mandarin

    <b>Language</b>: Mandarin <b>Originating country</b>: Northern and southwestern China <b>Increase in Canada</b>: Approximately 53 per cent

  • Tagalog

    <b>Language</b>: Tagalog <b>Originating country</b>: Philippines <b>Increase in Canada</b>: Approximately 65 per cent