odd sample count merge fix (missing data for last 1-3 samples was handled incorrectly)