Fix a crash on early restore_object() call.

gz_sel is not properly initialized.
Merge pull request #166 from sunyc/master

Fix a crash on early restore_object() call.