fix a bug in modify_instance_attribute.py