A number of things could be happening. First and foremost, if you didn't allow the dough to chill for ample amount of time, your cookies will spread because of the high butter content. Second, check the expiration date on your baking powder!