Fix segmentation fault. Pointer messup, as usual...