correct the variable types in Primer's format strings
Merge pull request #1608 from skurfer/primerCrash

make Primer usable