fix build error for halo