fix off-by-one error in shape field truncate