Fix indentation and name of local variable