fixing segfault again =(