Bug fix in recursive inject