fixed a bug on restoreSnippets()