Reversed printing of stack in interactive mode