Corrected shot noise in  halo power spectrum code