fixed bug for Pbj plots