bugfix: make sure deleted file won't stop scanning