fix missing first row for each chunks