Fix position calculation in node_find_for_range