Clear the stack after parsing and fixes indentation.