Fixed variable leaded into global namespace.

Closes #49.