Fixed --nstates option