SetState module problem fixed, closes #843.
Merge pull request #925 from phaidon/module-setstate-fix

SetState module problem fixed, closes #843.