historyapi fix