fix error of ajax