--- a/src/tui.rs
+++ b/src/tui.rs
@@ -3529,7 +3529,11 @@ impl<'a> NodeMap<'a> {
         let shift = 64 - width;
         let mask = (slots - 1) as u64;
 
-        let slots = arena.alloc_uninit_slice(slots).write_filled(None);
+        let uninit_slots = arena.alloc_uninit_slice(slots);
+        for slot in uninit_slots.iter_mut() {
+            slot.write(None);
+        }
+        let slots = unsafe { std::mem::transmute::<&mut [std::mem::MaybeUninit<Option<&'a NodeCell<'a>>>], &mut [Option<&'a NodeCell<'a>>]>(uninit_slots) };
         let mut node = tree.root_first;
 
         loop {
