You didn't do anything wrong. Sometimes the confectioner's sugar lumps up when it's added to the other ingredients. Just keep stirring and as it heats, most of that will dissolve. You can also stir it with a whisk and that helps. If there are still a few lumps left, just strain the glaze through a strainer and it will be just fine.