fixed typo in autoscripting code