fix pmvsum bug