fixed error preventing running of script. fixes #201