An improved spectral clustering method for community detection under the degree-corrected stochastic blockmodel