Fix ThreadHiding.onIndexRefresh().