Apply fix for #62 also to PPM, and add a test.