Fixes end truncate behavior in the presence of tags