Set state attribute to correct value
Merge pull request #4 from jollyrojer/master

Set state attribute to correct value