fix rpl_find_preferred_parent