fix segfault on eval