fixed globals visibility