PSTAT lookup bug fix