Fixed a bug when trying to optimize a extract vector element of a