Fix indentation and name of local variable

(Not sure what the github web editor did to the last line. Removed trailing white space?)