fixing autoscrolling