Fixed a simple stupid bug in the use of automodule and accessing a script.