When creaming your sugar and butter, it is essential to note that beating the mixture too fast could add too-big air bubbles to your cookies, making them fall and flatten, and beating the mixture for too long will make it fall apart. In addition, use room-temperature eggs for your dough and slowly add them to the bowl to keep the batter's air bubbles intact.