Fix scope destroy handler for autoscroll