corrected chunks for end of file