Corrected reset stateVector bug.