Corrected error. 1 changed for i_states.