temporary solution for segfault