fix some segfaults