bug fix in recursive import