Fix spelling of local variable names