fixes bug #22
fixes bug #22 (thanks for commenting on my previous attempt to fix bug #22)
Merge pull request #23 from joachimneu/master

Correctly restore checkboxes, closes #22