This happens if the cookie dough is not well coated with sugar or if it is too warm.