I think you used the word “panacea” incorrectly. Judging by context, I would guess that the word “band-aid” would better convey your intended meaning.
And when the cure fails to be adequate, well, it becomes a band-aid, a temporary measure in search of a real solution.