Bat codefix

Removed debug code and a variable name