bug fix: template missing, import error in convert function

bug fix: template missing, import error in convert function