bug fix

every time call getNextRecord, decrease accumulator