fixed pndId > pnpId (closes #24)