Function Selection: fixed crash on top level nodes