bug fix

same as in CMSSW_7_1_X
pull request: https://github.com/cms-sw/cmssw/pull/4452