Fixing history search for multiple pages worth of results