If your ingredients are not at room temperature, this may cause the cookies to spread while baking. Make sure your butter is softened, not too cold nor melted, and that will help the cookies spread less.