fix two pfilereaper logic bugs