fix pdstatus check