Works around original segfault, later segfaults can still occur