only fix import template if one exists