You probably baked them too close to the top of the oven. Make sure to cook them in the middle. If they start to get too dark on top even on the middle rack, gently tent with foil.