fix 'saved' status of retrieved docs
Merge pull request #1 from wezs/master

retrieving document from DB error
Merge branch 'master' into next
Forgot a  and the closure hit back