fixed problem with autoscroll