autoscroll working before cleanup