You can thicken the glaze by adding more powder sugar. Also, make sure your cookie isn't too hot before glazing them or it will just drip right off. Another tip is to glaze them when they are warm for that nice glazed cookie look and then adding a bit more glaze on top when cooled.