Fix import in getExpr and getTerm