Fixed an error that would occur with deleted files.