fix next build errors