fixed bug with states counting to infinity