You likely over-baked them. To avoid this, pull them out of the oven a minute or two early and let them set up on the baking sheet. They will be soft in the center (when you pull them out of the oven) but they continue baking since the baking sheet is hot.