History file sometimes reset, something to do with the names count failing; fixed the issue;