cookie type fix