fix quasiparticle weight calculation