Added fix for StaleStateException
Merge pull request #227 from skpcharles/master

Added fix for StaleStateException