Stupid bug in sample_offset renumeration fixed