Fixed segfault + ZTS