Fix toVector order

Fix toVector order