tolerate incorrect last boundary