Fix for bisect segfault