fix make_optional(ref(i))