Merge pull request #96 from alanwoolley/persist-fix

Possible fix for Issue #85