fix bug in _infix_to_postfix