Fixing autoscrolling