If you've given them a chance to cool (and even have tried to refrigerate them and had no luck with them setting up), the sugar mixture likely needed to be boiled a little longer!