Bug fix: had accessed script before loading it