fixed postfix calculation