double ajax bug fixed