Fixed incorrectly couting files to delete