Reinvestigation of the electron fraction and electron Fermi energy of neutron star