Fixed serious bug with deleted files