Zeroing pa_pd correctly