fix AjaxCallback in ApiHelper. save cookies everytime after request.