fixed a bug where State vector was wrong size