hopefully fixed npe in PL