fix off-by-one error in combining of moving subparts