fix overflow in PPAs