wrong variable reference in docutil