fixed segfault in code_find_start()