Fixed bug when autoscroll = false