Saving works now, but I get a segmentation fault when loading.