fixed autoscroll bug in mozilla