Flat cookies can result from using melted butter instead of room-temperature butter or from not chilling the dough if your kitchen is warm. Make sure your ingredients are at the right temperature, and consider chilling the dough for 30 minutes before baking.