Bug in record limit checking.