Fix cookie bug on iOS 7