Your shortbread cookies most like spread because the dough was too warm. Make sure you chill your dough before baking!