Scientists seeking a cure for AIDS say they have been inspired, not crushed, by a major setback in which two HIV positive patients believed to have been cured found the virus re-invading their bodies once more.

True, the news hit hard last month that the so-called “Boston patients” - two men who received bone marrow transplants that appeared to rid them completely of the AIDS-causing virus - had relapsed and gone back onto antiretroviral treatment. But experts say the disappointment could lay the basis for important leaps forward in the search for a cure.

“It’s a setback for the patients, of course, but an advance for the field because the field has now gained a lot more knowledge,” said Steven Deeks, a professor and HIV expert at the University of California, San Francisco.

He and other experts say the primary practical message is that current tests designed to detect even very low levels of HIV present in the body are simply not sensitive enough. As well as having the human immunodeficiency virus (HIV), the Boston patients both also had a type of blood cancer called lymphoma, for which they were treated using bone marrow transplants - one man in 2008 and the other in 2010.

They continued taking the antiretroviral AIDS drugs, but eight months after each patient’s transplant, doctors found they could not detect any sign of HIV in their blood. In the early part of 2013, both patients decided to stop taking their AIDS drugs and both appeared to remain HIV-free - prompting their doctors, Timothy Henrich and Daniel Kuritzkes from Boston’s Brigham and Women’s Hospital, to announce at a conference in July that they may have been cured.

Yet in December came news that one of the men had begun to show signs of an HIV rebound by August, while the second patient had a relapse in November. Henrich said the virus’ comeback underlined how ingenious HIV can be in finding hiding places in the body to evade attack efforts by the immune system and by drug treatment.

“Through this research we have discovered the HIV reservoir is deeper and more persistent than previously known and that our current standards of probing for HIV may not be sufficient,” he said, adding that both patients were “currently in good health” and back on antiretroviral therapy.

Barely a decade ago, few HIV scientists would have dared put the words HIV and cure in the same sentence. Yet some intriguing and inspiring cases in recent years mean many now believe it is just a question of time before a cure is found.

First was the now famous case of Timothy Ray Brown, the so-called “Berlin patient,” whose HIV was eradicated by a complex treatment for leukemia in 2007 involving the destruction of his immune system and a stem cell transplant from a donor with a rare genetic mutation that resists HIV infection.