fix error can't use ajax