Fixed injected template import code