fix rpn