fixed the issue of ajax