Found it - easy buglet. At one point I was checking for 'in range' and typoed '< 875' instead of '<= 876'. So 857 and 875 are both 'in'