Fix state handling error
Merge branch 'master' of github.com:HrNilsson/TIWSNE