Fixed autoscroll problem