fix holes in upgrade