fix bug of scroll locking.