return last value on stack not first

Fixed bug, the result should be the last value on the stack, not the
first value.