fixed device cookie bug