“Aguamenti!” he shouted, jabbing the goblet with his wand. The goblet filled with clear water; Harry dropped to his knees beside Dumbledore, raised his head, and brought the glass to his lips — but it was empty. Dumbledore groaned and began to pant. “But I had some — wait — Aguamenti!” said Harry again, pointing his wand at the goblet. Once more, for a second, clear water gleamed within it, but as he approached Dumbledore’s mouth, the water vanished again. “Sir, I’m trying, I’m trying!” said Harry desperately, but he did not think that Dumbledore could hear him; he had rolled onto his side and was drawing great, rattling breaths that sounded agonizing. “Aguamenti — Aguamenti — AGUAMENTI!” The goblet filled and emptied once more.
HARRY POTTER AND THE HALF-BLOOD PRINCE (Chapter 26)
Why does the goblet empties persistently? Did Voldemort settle a curse to avert aguamenti spell from filling the goblet with water?