Fixed error in detection of deleted files