Fix code formatting: preserve current indentation.
Added quick fix for undeclared variable