bugifx in inner for loop in the ajax callback function