Fixed autoscroll next page bug