fix leaking a global, regression from the cleanup of pull request #30