Bug fix (DBN code)

CPT parameters were being indexed incorrectly in a couple of locations
in new DBN code; this is now fixed.