Scrollbar frame counting fix