Fix small cookie bug