fixing cookie