That means the corn syrup and sugar was overcooked. Remove the sugar mixture form the heat as soon as the sugar has fully dissolved into the mixture and it starts to simmer.  If you cook it for too long it will get into the hard ball stage rather than the soft ball stage and will not keep its soft and chewy texture.