fixed a bug when a file disappears or something!