Fix for invalid InstanceOf in change_instance_type