fixed minor bug : thread-safe rowIndex