Fix I\/O redirect so it doesn\'t touch the stack