Fixes autoscrolling.