Fixed scope for globals in CSW setup