Update instance_methods.rb

bugfix for restore value