Fixes end truncate behavior