Fixing dPD bug