Fixing `getPDP()` function.