fix set cookie