fixed device bug with check-persistence tool