Fixing bug in bat-file