Fixed stack offset off-by-one bug in sample_assembly