fix cookie invalid