fix trnode/bvnode search code broken in flexibility adjustment