Fix bug in AjaxUtil and  onajaxend