Lining your cookie sheet with aluminum foil can cause the bottom of your cookies to cook faster, ultimately resulting in uneven bake. Instead, use parchment paper, a silicone baking mat, or a really good nonstick spray.