Fixed bugs in VritualScroll on/off functions