ajax bug fixed