Fix the stack logic in the preprocessor.