Fix a couple of errors in the PDD code.