Fixed autoscript