Actually fixed the previous segfault bug
broken, swapping to linux to diagnose