Fixed escaped global; closes #362.