A Nigerian family on the cusp of being forced out of the country because of their newborn has been granted a reprieve.

Dimeji and Deborah Tawose and their three children will all now receive temporary resident permits.

The couple, both medical radiographers, came to Calgary on July 12 under the federal skilled worker program. But they were told to leave because their third child was born in the U.S. while their visas were being processed.

Confusion over the status of their youngest child, who’s still nursing, had the family fearing they’d need to leave the country, or the baby would be separated from his family for weeks.

Officials say the reprieve will allow the family to stay in Calgary for a year while they sort out their paperwork.