Fix invalidateAll() to remove loading references