Crystallization can occur if sugar granules remain on the side of your pan. Use a pastry brush dipped in water to wipe down the sides of the pan to help.