bugfix - span length with append & prepend options