Fix for bug #6929.  I was getting the history in the wrong order, so it wasn't fetching all of it, only the latest 500 records.