fix bug of extract cookie