If your cookies are too flat then the butter was probably too warm. Melted butter results in flat cookies. When baking cookies, the butter should be at room temperature but not melted.