fix a bug with wrong positions for tokens with min="0"