deleteDir function var name fix 2