fix for updates from PR2 in x509
Merge pull request #135 from mirleft/fix-polyvar

fix for updates from PR2 in x509