Fix variable scope and whitespace