Make sure that your butter isn’t warmer than room temperature, and also make sure that you’re measuring your flour correctly (see my tip above). If you’re worried that your cookies might spread, you can always place the dough into the fridge for a few minutes before you portion and bake it.