Bug fixed addScript or addFile used assume-global mode for func vars