[fix] % each template/import recursion