I think I fixed the weird segfault problem. I'm silly.