fixing segfault due to new code