Debugging weird cookie bug