fix autoscroll and script