fix global leak in readme example