fixed cookie sending