fix off by one in record find code