Fixed vpos2pos() for out of range values.