fix overflows in trim