Debugging an end-of-range error.