fix error in rpn