Fix bug in ppg