fixes state
Merge pull request #18 from nickdepinet/master

fixes state