Data Ajax: Fixed infinite loop on loading