fixed end-point bug in try-divisors