fix cookie expires bug