fix cookie get issue