Fix global scope leak

A missing comma leaks a few variables into the global namespace. This PR fixes the issue.