fixed a cookie error