Fixed issue #8313: Unable to import template