fixing cookie issues