fix some segfaults by properly initializing these fields