If your cookies didn't set, you need to refrigerate them longer. Also, use special care to measure your ingredients accurately.