fixed bug with states not emptying
[#18]