fix instance state bug close #16
Merge pull request #17 from nohana/save_instance_state

fix instance state bug close #16