Fix bug around state being modified by requests
Merge pull request #6 from jangie/master

Fix bug around state being modified by requests