remove file pstat keyerror