fix NPE in PL