fix the loopcall issue