Fix #13 - reset state for lazy mode
Merge pull request #14 from dhoko/ag_#13_patchstate

Fix #13 - reset state for lazy mode