fix loop require