fix imports in templates