fix issues with deleted files