bug fix for slava's issue 26: https://github.com/slava77/cmssw/issues/26