Small fixes

Fix an inadvertently global variable and remove unused indentation logic.