Fix #54

I'm so scared about this fix, it shouldn't even be pushed to GitHub, let alone CRAN. Why should moving an object to global scope fix the bug?