fix siblings insertion function