quickfix for segfault