fixed globals issues for pivy module