ooops, fixed segfault