Fix crash in pfj