The most common reason your cookies aren't firming up is because you aren't boiling the butter and sugar mixture long enough. Be sure it's a full rolling boil before you start the timer.