you probably have too much flour in the recipe. the excess flour caused too much gluten to form, preventing the cookie from softening and spreading.