Fix creating global scope