solve the loop import error