fix bugs. use cookie of 1st response