fixed scrollindex and rowcounting